interface IRouterData {
    mName: string
    mPath: string
    mChildren: IRouterData[]
}
class RouterData implements IRouterData {
    mName: string
    mPath: string
    mChildren: IRouterData[]
    constructor(name: string, param: [] = [], children: IRouterData[] = [], path: string = '/' + name) {
        this.mName = name
        this.mPath = path
        this.mChildren = children
    }
}
import type { RouteRecordRaw } from 'vue-router'
import { useRouter } from 'vue-router'
let router = useRouter()
class LoginAc {
    /**
     * token是否过期
     */
    static KEY_HAS_TOKEN_EXPIRED = "key_has_token_expired"

    public static newInstance(hasTokenExpired: boolean = false) {
        router.replace({
            name: 'login'
        })
    }
    // public static getRouter(): RouteRecordRaw {
    //     return {
    //         path: '/',
    //         name: 'welcomeAc',
    //         component: WelcomeAc
    //     }
    // }
}
import { $ref } from 'vue/macros'
let item :RouterData[] = []
let data =$ref(item)
export const LOGIN_AC = new LoginAc()
class MainAc extends RouterData {
    constructor() {
        super("main-ac")
    }
}

// export const RouterInstance:RouterData[] = [LOGIN_AC, LOGIN_AC]